package com.cloud.stock.api.fegin;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "STOCK-SERVICE")
public interface StockClient {

    @GetMapping("/stock/decr/{productId}")
    String decr(@PathVariable("productId") int productId);
}
